package com.cqvip.innocence.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cqvip.innocence.project.model.dto.AdminRoleView;
import com.cqvip.innocence.project.model.entity.Admin;
import org.apache.ibatis.annotations.Param;

/**
 * @author Innocence
 */
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 根据用户名或者角色名获取管理员列表
     * @param page
     * @param adminRoleView
     * @return IPage<AdminRoleView>
     */
    Page<AdminRoleView> getAdminsList(Page page, @Param("adminRoleView") AdminRoleView adminRoleView);
}
